package com.xuxin.oauth2.credentials.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xuxin.oauth2.credentials.entity.Permission;
import com.xuxin.oauth2.credentials.entity.User;
import com.xuxin.oauth2.credentials.mapper.UserMapper;
import com.xuxin.oauth2.credentials.service.IUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Gosin
 * @Date: 2020/6/1 21:33
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Override
    public List<Permission> queryUserAuthorities(Integer userId) {
        return baseMapper.queryUserAuthorities(userId);
    }

    @Override
    public User queryUserByUsername(String username) {
        return baseMapper.queryUserByUsername(username);
    }

}
